package cn.zqh.brand.mapper;

import cn.zqh.bean.bo.ShopCar;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import javax.validation.constraints.Max;
import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zqh
 * @since 2023-02-28
 */
public interface ShopCarMapper extends BaseMapper<ShopCar> {

    /**
      * @Author: zqh
      * @Date:
      * @Description: 查询自己的购物车
    */
    List<ShopCar> getOwnShopCarByMapper(String userId,Integer page, Integer size);

    /**
      * @Author: zqh
      * @Date:
      * @Description: 管理员查询所有购物车信息
    */
    List<ShopCar> getAllShopCarByMapper(Integer page,Integer size);
}
